<style>
.content-group {background:#fff;border-radius: 0.5rem;margin-bottom:0.39rem}
</style>
<div ng-include="sys_html('common/_header','','','jy_weishop')"></div>
<div ng-if="pagedata.account" class="fui-page fui-page-current page-goods-list">
<div class='fui-content' style="top:0">
		<div class="fui-cell-group" style="margin-top:0;background:#fff;">
		<div class="fui-cell" style="background:none;padding:0 0.5rem">
			<div class="fui-cell-label" style="width:auto">
				<img style="height:1.2rem" ng-src="{{tomedia(pagedata.setting.toplogo) || '../addons/jy_mcaigou/resource/images/logo.png'}}"/>
			</div>
			<div class="fui-cell-info" style="line-height: 2.4rem;text-align:right"></div>
			<div class="fui-cell-remark noremark">
				<i class="icon icon-saoyisao1" ng-click="pagedata.scancode()" style="font-size: 1rem;margin-right:0.2rem"></i>
				<i class="icon icon-fenxiang2" onclick="$('#showsharecover').modal();" style="font-size: 1.1rem;margin-right:0.2rem"></i>
				<i class="icon icon-wo1" ng-click="access_json('jy_mcaigou/member.index/')" style="font-size: 1.1rem;"></i>
			</div>
		</div>
		</div>
		<div class="fui-cell-group fui-cell-click" style="margin-top: 0;margin-bottom:0">
			<div class="fui-searchbar bar" style="background:none;z-index: 0;">
				<div class="fui-cellone" style="padding:0.3rem 0.1rem;top:0;">
					 <div class="fui-cellone-info">
						<div class="search-input" style="height:1.6rem">
							<form action="javascript:return true">
							<i id="searchsub" class="icon icon-sousuo1 bold" ng-click="tool.get_list('jy_mcaigou/mindex/getlist/',true);" style="line-height: 1.7rem;"></i>
							<input type="search" placeholder="搜索商品" class="search" ng-model="pagedata.params.keyword" style="height:1.6rem;border: 0;text-align: left; color: #999; font-size:0.6rem;background:#f2f2f2;border-radius: 1rem;" />
							</form>
						</div>
					 </div>
					 <div class="fui-cellone-remark noremark">
						<span style="margin-left:0.3rem;font-size: 0.75rem;" ng-click="tool.get_list('jy_mcaigou/mindex/getlist/',true);">搜索</span>
					 </div>
				</div>
			</div>		
		</div>
		<div ng-if="pagedata.setting.hdps.length>0" ng-include="sys_html('shop/_hdps')"></div>
		<div ng-repeat="item in pagedata.setting.indexcube" class="fui-cube" ng-click="access_json(item.url)" style="padding:0.3rem 0.5rem;height:auto">
			<img style="height:auto" ng-src="{{tomedia(item.image) ||'../addons/jy_weishop/resource/images/mobile-hdp02.jpg'}}"/>
		</div>
		<div class="fui-tab-scroll" style="padding-bottom:0;">
			<div ng-class="{'item':1,'on':pagedata.params.pid==0}" style="height:2rem;line-height:1.5rem"><a href="javascript:;" ng-click="pagedata.params.pid=0;tool.get_list('jy_mcaigou/mindex/getlist/',true)">推荐</a></div>
			<div ng-repeat="tab in pagedata.category" style="height:2rem;line-height:1.5rem" ng-class="{'item':1,'on':pagedata.params.pid==tab.id}"><a href="javascript:;" ng-click="pagedata.params.pid=tab.id;pagedata.params.cid=0;pagedata.groupkey=$index;tool.get_list('jy_mcaigou/mindex/getlist/',true)">{{tab.title}}</a></div>
		</div>
		<div ng-include="sys_html('shop/_goodstwodh')"></div>
		<div ng-show="loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
		<div ng-include="sys_html('common/_copyright',true)"></div>
	</div>
</div>
</div>
<div ng-include="sys_html('common/_share','','','jy_weishop')"></div>
<div ng-include="sys_html('_footer')"></div>
<div ng-include="sys_html('common/_coupon',true)"></div>
<div ng-include="sys_html('common/_h5game',true)"></div>
<div ng-include="sys_html('common/_gotop',true)"></div>
<script>
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
scope.pagedata.scancode=function () {
			console.log('scanQRCodeOK');
			wx.scanQRCode({
				needResult: 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
				scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
				success: function (res) {
					var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
					location.href = result;
				}
			});
}
</script>